import Vue from 'vue'
import App from './App.vue'
import router from './router'
import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css'
import axios from 'axios'
import wxShare from './assets/wxShare'

Vue.use(MintUI)		//本项目使用MintUI框架
Vue.prototype.$http = axios	//ajax插件
Vue.prototype.baseUrl = "http://hy1.3jeye.com:8060/"
// Vue.prototype.baseUrl = "http://172.18.0.214:8060/"

Vue.config.productionTip = false

//微信分享调用
//wxShare(Vue.prototype.baseUrl)

axios.get("config.json").then(res=>{
	//配置文件
	Vue.prototype.cfg = res.data
	
	//渲染
	new Vue({
		router,
		render: h => h(App)
	}).$mount('#app');
	
}).catch(err=>{
	
	alert("服务器请求失败")
	
})

